package cn.copera.dyy.entity;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import cn.copera.dyy.common.persistence.IdEntity;
@Entity
@Table(name = "ka_user")
@DynamicInsert
@DynamicUpdate
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class User extends IdEntity<User>{
	private String nickName;//昵称
	private Integer currentCardPoint;//当前卡点
	private Integer userCardPoint;//可用卡点
	private static final long serialVersionUID = 1L;
	public String getNickName() {
		return nickName;
	}
	public void setNickName(String nickName) {
		this.nickName = nickName;
	}
	public Integer getCurrentCardPoint() {
		return currentCardPoint;
	}
	public void setCurrentCardPoint(Integer currentCardPoint) {
		this.currentCardPoint = currentCardPoint;
	}
	public Integer getUserCardPoint() {
		return userCardPoint;
	}
	public void setUserCardPoint(Integer userCardPoint) {
		this.userCardPoint = userCardPoint;
	}
	
	

}
